package com.tan.lighting.disruptor.snapshot.factory;

import com.tan.lighting.ddd.SingletonEntityRepository;
import com.tan.lighting.disruptor.snapshot.Snapshot;


public class CoreSnapshotFactory implements SnapshotFactory {


    private SingletonEntityRepository singletonEntityRepository;


    @Override
    public Snapshot createSnapshoot() {

        Snapshot snapshot = new Snapshot();
        snapshot.setCreateTime(System.currentTimeMillis());
        snapshot.getContentMap().put(SingletonEntityRepository.class, singletonEntityRepository);

        //TODO
        return snapshot;
    }

}
